import { DataTypes } from "sequelize";
import sequelize from "./db";

export default sequelize.define('classes', {
  'id': {
    type: DataTypes.UUID,
    allowNull: false,
    primaryKey: true,
    unique: true,
    defaultValue: DataTypes.UUIDV4
  },

  'nickname': {
    type: DataTypes.STRING(10),
    allowNull: false,
    unique: true
  },
}, {
  createdAt: false,
  updatedAt: false,
  freezeTableName: true
})